package com.bba.manager.sku.controller;

import com.bba.manager.common.model.sku.Series;
import com.bba.manager.common.util.ResponseVO;
import com.bba.manager.sku.service.ISeriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("init")
public class InItController {
    @Autowired
    private ISeriesService seriesService;

    @GetMapping("/seriesOpt")
    public ResponseVO getSeriesOpt(){
        List<Series> list = seriesService.list();
        return ResponseVO.success(list);
    }
}
